package org.cnc.explain.lifecycle.beanpropertiesset_7;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-08-30
 */
@Component
public class PropertiesSetComponentBean {
	@Autowired
	PropertiesSetDependBean autowiredDepend;

	@Resource(name = "propertiesSetDependBean")
	PropertiesSetDependBean resourceDepend;

	PropertiesSetDependBean setterInjectDepend;

	@Autowired
	public void setSetterInjectDepend(PropertiesSetDependBean setterInjectDepend) {
		this.setterInjectDepend = setterInjectDepend;
	}

	@Override
	public String toString() {
		return "PropertiesSetComponentBean{ \n" +
				"autowiredDepend=" + autowiredDepend +
				"\n resourceDepend=" + resourceDepend +
				"\n setterInjectDepend=" + setterInjectDepend +
				"\n}";
	}
}
